# -*- coding: utf-8 -*-
# this file is released under public domain and you can use without limitations

#########################################################################
## Customize your APP title, subtitle and menus here
#########################################################################

response.title = T('Voice of Access') # request.application
response.subtitle = T('Voice of Access is a federally registered non profit organization that is dedicated to creating and promoting fair access to economic, political and social resources.')

## read more at http://dev.w3.org/html5/markup/meta.name.html
response.meta.author = 'Christopher SteelName <Christopher.Steel@VoiceOfAccess.org>'
response.meta.description = 'The Voice of Access website'
response.meta.keywords = 'Voice of Access, Highly Accessible Websites, Accessibility, Universal Cake, Open Source, Web2py'
response.meta.generator = 'Web2py Web Framework'
response.meta.copyright = 'Copyright 2011, Christopher Steel'

## your http://google.com/analytics id
response.google_analytics_id = None

#########################################################################
## flatpages menus
#########################################################################
response.menu = [
    (T('Home'), False, URL('default','index'), [])
]

response.menu_custom = [
    (T('Services'), False, URL(request.application,'default','services'), [
      (T('Websites'), False, URL(request.application,'default','websites'), []),
      (T('Development'), False, URL(request.application,'default','development'), [
        (T('Applications'), False, URL(request.application,'default','applications'), []),
      ]),
      (T('Universal Cake'), False, URL(request.application,'default','cake'), []),    
    ])
]

response.menu_custom += [
    (T('Resources'), False, URL(request.application,'default','resources'), [
      (T('Projects'), False, URL(request.application,'default','projects'), []),
      (T('Accessibility'), False, URL(request.application,'default','access'), []),
      (T('Blog'),False,'http://universalcake.blogspot.com/'),
      (T('Tools'), False, URL(request.application,'default','tools'), []),
    ])
]
    
response.menu_custom += [
    (T('About Us'), False, URL(request.application,'default','about'), [])
]
    
response.menu_terms = [
    (T('Terms of Usage / Privacy Policy'), False, URL(request.application,'default','terms'), [])
]

# We need an if statement here to check if response.menu exists
response.menu += response.menu_custom


#########################################################################
## provide shortcuts for development. remove in production
#########################################################################

def _():
    # shortcuts
    app = request.application
    ctr = request.controller    
    # useful links to internal admin and appadmin pages
    response.menu+=[
        (T('This App'),False, 
         URL('admin','default','design/%s' % app), [
                (T('Controller'),False,
                 URL('admin','default','edit/%s/controllers/%s.py' % (app,ctr))),
                (T('View'),False,
                 URL('admin','default','edit/%s/views/%s' % (app,response.view))),
                (T('Layout'),False,
                 URL('admin','default','edit/%s/views/layout.html' % app)),
                (T('Stylesheet'),False,
                 URL('admin','default','edit/%s/static/base.css' % app)),
                (T('DB Model'),False,
                 URL('admin','default','edit/%s/models/db.py' % app)),
                (T('Menu Model'),False,
                 URL('admin','default','edit/%s/models/menu.py' % app)),
                (T('Database'),False, URL(app,'appadmin','index')),
                (T('Errors'),False, URL('admin','default','errors/' + app)),
                (T('About'),False, URL('admin','default','about/' + app)),
                ]
         )]    

    # useful links to external resources
#_()
